사이트 내 전체검색
우분투에서 webalizer 2.23 설치방법 (소스 컴파일)
로빈아빠
https://cmd.kr/server/674 URL이 복사되었습니다.

본문

우분투에서 webalizer 2.23 설치방법 (소스 컴파일)

1. 소스 다운
http://www.webalizer.org/download.html
ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-05-src.tgz

  GeoDB database 다운
ftp://ftp.mrunix.net/pub/webalizer/webalizer-geodb-latest.tgz
압축풀어서  /usr/share/GeoDB/GeoDB.dat 에 저장


2. 압축풀어서 
./configure

3. 다음과 같은 오류가 나온다..

configure: error: z library not found.. please install libz
apt-get install zlib1g-dev


configure: error: png library not found.. please install libpng
apt-get install libpng12-dev

configure: error: gd library not found.. please install libgd
apt-get -y install libgd2-xpm-dev

make 과정에서  다음과 같이 나오면 libdb 설치
checking for main in -ldb... no
configure: WARNING: libdb not found.. DNS/GeoDB code disabled!

apt-get install libdb-dev


4. make

make
make install

make  한뒤 새로 설정을 한경우
make clean;make;make installl


5. 설정파일 복사
cd cd /usr/local/etc/
cp webalizer.conf.sample webalizer.conf
cp /usr/local/bin/webalizer /usr/bin/webalizer


vi /etc/webalizer/webalizer.conf

LogFile /var/log/apache2/access.log.1
OutputDir /var/www/webalizer
HistoryName     webalizer.hist
Incremental     yes
IncrementalName webalizer.current
ReportTitle    Usage Statistics for
HostName        xxx.org

PageType        htm*
PageType        cgi
PageType        php3
PageType        php

HTMLHead <meta http-equiv="content-type" content="text/html; charset=utf-8">

#GeoIP           yes
#GeoDBDatabase   /usr/share/GeoDB/GeoDB.dat




#GeoDBDatabase 복사하기 
mkdir /usr/share/GeoDB/
cp  GeoDB.dat  /usr/share/GeoDB/GeoDB.dat

실행은
webalizer -c /etc/webalizer/webalizer.conf


작성 : freeimage.kr 김성대 - 리눅스 서버 설치


댓글목록

등록된 댓글이 없습니다.

1,139 (3/23P)

Search

Copyright © Cmd 명령어 3.147.66.149